﻿@model Downloader.Framework.Queries.RecordList<Downloader.Web.Controllers.ViewModels.UserAccountViewModel>

<table id="tbdatalist" pageindex="@Model.PageIndex" pagecount="@Model.PageCount" pagesize="@Model.PageSize"  class="tableBorder tableBorder-thcenter" width="100%" cellspacing="0" cellpadding="0" border="1">
    <tr  class="color1">
        <th>
            序号
        </th>
        <th>
             用户名称
        </th>
        <th>
            QQ
        </th>
        <th>
            邮箱
        </th>
        <th>
            创建时间
        </th>
        <th>
            操作
        </th>
    </tr>
    @{ 
        var i = 0;
        foreach (var user in Model.Data)
        {
       
        <tr  class= "color@((i+1) % 2+2)">
            <td>@(i+1)
            </td>
            <td>@user.UserName
            </td>
            <td>@user.QQ
            </td>
            <td>@user.Email
            </td>
            <td>@user.CreateTime
            </td>
            <td>@Html.ActionLink("编辑", "Edit", "Article", new { id = user.Id }, new { @class = "edit" })
                @Html.ActionLink("删除", "Dele", "Article", new { id = user.Id }, new { @class = "dele" })
            </td>
        </tr>
            i++;
        }
    }
</table>
